package com.yushixin.account.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 账户实体类
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "db_account", schema = "schema_account")
public class Account implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 自增主键ID
     */
    @Id
    @Column(name = "id")
    private Long id;
    
    /**
     * 用户名
     */
    @Column(name = "username")
    private String username;
    
    /**
     * 用户密码
     */
    @Column(name = "password")
    private String password;
    
    /**
     * 手机
     */
    @Column(name = "mobile")
    private String mobile;
    
    /**
     * 状态
     */
    @Column(name = "status")
    private Integer status;
}